package com.ssy.lingxi.member.merchant.model.vo.lrc.request;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;
import java.util.List;

/**
 * 新增或修改会员等级阈值、权益
 * @author 万宁
 * @version 2.0.0
 * @date 2022-03-22
 */
public class MemberLevelRightUpdateVO implements Serializable {
    private static final long serialVersionUID = -5976570838499719825L;

    /**
     * 等级Id
     */
    @NotNull(message = "等级Id要大于0")
    @Positive(message = "等级Id要大于0")
    private Long levelId;

    /**
     * 升级阈值
     */
    @NotNull(message = "升级阈值要大于等于0")
    @PositiveOrZero(message = "升级阈值要大于等于0")
    private Integer point;

    /**
     * 权益类型列表
     */
    @Valid
    private List<MemberRightTypeParamVO> rights;

    public Long getLevelId() {
        return levelId;
    }

    public void setLevelId(Long levelId) {
        this.levelId = levelId;
    }

    public Integer getPoint() {
        return point;
    }

    public void setPoint(Integer point) {
        this.point = point;
    }

    public List<MemberRightTypeParamVO> getRights() {
        return rights;
    }

    public void setRights(List<MemberRightTypeParamVO> rights) {
        this.rights = rights;
    }
}
